﻿ 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using NUnit.Framework.Constraints;
using  TamGiac;
namespace TestTamGiac
{
    [TestFixture] // 
    class TestKiemTraTamGiac
    {
        private LopTamGiac tamGiac;
        [SetUp] // 
        public void LopTamGiac()
        {
            tamGiac = new LopTamGiac(0,0,1,0,0,1);
    
        }
        //

        [Test]
        public void KiemTraTamGiac01()
        {
            tamGiac = new LopTamGiac(0, 0, 0, 0, 0, 0);

            Assert.AreEqual(tamGiac.KiemTraTamGiac(), false);
        }
        [Test]
        public void KiemTraTamGiac02()
        {
            tamGiac = new LopTamGiac(0, 0, 999, 0, 0, 0);

            Assert.AreEqual(tamGiac.KiemTraTamGiac(), false);
        }
        [Test]
        public void KiemTraTamGiac03()
        {
            tamGiac = new LopTamGiac(0, 0, 0, 2, 0, 4);

            Assert.AreEqual(tamGiac.KiemTraTamGiac(), false);
        }
        [Test]
        public void KiemTraTamGiac04()
        {
            tamGiac = new LopTamGiac(0, 0, 1, 1, 2, 2);

            Assert.AreEqual(tamGiac.KiemTraTamGiac(), false);
        }
        [Test]
        public void KiemTraTamGiac05()
        {
            tamGiac = new LopTamGiac(0, 0, 2, 4, 0, 9);

            Assert.AreEqual(tamGiac.KiemTraTamGiac(), true);
        }
     
    
    }

}
